package com.zy.util;

import lombok.Data;

/**
 * @author 29787
 */
//变现层接口的模型类，用于前后端数据格式的统一
@Data
public class R {

    private Boolean flag;
    private Object data;

    public R() {
    }

    public R(Boolean flag) {
        this.flag = flag;
    }

    public R(Object data) {
        this.data = data;
    }

    public R(Boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }
}
